package com.chenglu.android.cart;


import android.os.Bundle;

import androidx.annotation.Nullable;

import com.chenglu.android.R;
import com.chenglu.android.common.base.BaseActivity;
import com.chenglu.android.common.base.BaseFullScreenActivity;
import com.chenglu.android.common.utils.StatusBarUtil;
import com.gyf.immersionbar.ImmersionBar;

/**
 * @author: lyj
 * @Created: by Copyright 2023/3/29 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 * @Description：购物车
 */
public class CartActivity extends BaseActivity {

//    @Override
//    protected void onCreate(@Nullable Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.cart_layout);
////        StatusBarUtil.immersive(this);
////        StatusBarUtil.setPaddingSmart(this, toolbar);
//        CartFragment fragment = CartFragment.newInstance(true);
//        getSupportFragmentManager().beginTransaction().replace(R.id.framelayout, fragment).commit();
//    }

    @Override
    protected int getLayoutId() {
        return R.layout.cart_layout;
    }

    @Override
    protected void initView() {
        ImmersionBar.with(this)
                .statusBarColor(R.color.transparent)
                .statusBarDarkFont(true)
                .fullScreen(true)
                .init();

        CartFragment fragment = CartFragment.newInstance(true);
        getSupportFragmentManager().beginTransaction().replace(R.id.framelayout, fragment).commit();
    }


}
